package vip.sweet.sys.modular.login.controller;

import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import vip.sweet.common.response.CommonResponse;
import vip.sweet.sys.modular.login.service.LoginMonitorService;

/**
 * @author ASUS
 * @Date 2025/4/29 13:27
 * @Descripition
 */
@Tag(name = "登录监控控制器")
@RestController
@RequestMapping("/sys/loginMonitor")
public class LoginMonitorController {
    @Resource
    private LoginMonitorService loginMonitorService;

    /**
     *  登录监控列表接口
     */
    @GetMapping("/list")
    @Operation(summary = "登录监控列表接口")
    public CommonResponse list(){
        return CommonResponse.success(loginMonitorService.listDsc());
    }
}
